<template>
	<view class="container guestlist">
		<myhead :title="mytitle"></myhead>
		<view class="main">
			<view class="searchbox">
				<view class="search">
					<icon type="search" class="searchicon"></icon>
					<input class="searchinput" placeholder="请输入内容"/>
				</view>	
			</view>
			<view class="tip">
				共2个客户
			</view>
			<scroll-view class="guestlist" scroll-y="true">
				<view class="item" v-for="(item,index) in 8" :key = "index">
					<navigator class="itemleft" url="../guestdetail/guestdetail">
						<view class="left">
							<view class="username">
								客户名字{{index}}
							</view>
							<view class="info">
								<text>赊欠：</text>
								<text style="color: #DD524D; font-size: 32rpx; font-weight: bold;">3665元</text>
							</view>
						</view>
						<view class="right">
							<image src="../../static/images/blackright.png" class="routericon"></image>
						</view>
					</navigator>
				</view>
				<view class="tip" style="color: #999999; font-size: 30rpx; font-weight: normal;">
					没有更多数据了
				</view>
			</scroll-view>
			
		</view>
		<view class="footer">
			<navigator class="operator" url="../adduser/adduser">
				添加客户
			</navigator>
		</view>
	</view>
</template>

<script>
	import myhead from "../../components/header/header.vue"
	export default {
		data() {
			return {
				mytitle:'客户管理',
			};
		},
		components:{
			myhead
		}
	}
</script>

<style lang="scss" scoped>
.guestlist{
	color: black;
	display: flex;
	flex-direction: column;
	.main{
		width: 100%;
		flex: 1;
		display: flex;
		overflow: hidden;
		flex-direction: column;
		position: relative;
		.searchbox{
			padding: 10rpx 12rpx;
			box-sizing: border-box;
		}
		.tip{
			color: #353766;
			font-size: 24rpx;
			font-weight: bold;
			letter-spacing: 4rpx;
			text-align: center;
			background-color: #EEEEEE;
			padding: 20rpx 0rpx;
		}
		.guestlist{
			flex: 1;
			overflow: hidden;
			background-color: #EEEEEE;
			box-sizing: border-box;
			padding: 0rpx 20rpx;
			.item{
				font-size: 30rpx;
				background-color: #FFFFFF;
				margin-bottom: 15rpx;
				border-radius: 16rpx;
				.itemleft{
					flex: 1;
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 30rpx 20rpx;
					.left{
						.username{
							margin-bottom: 10rpx;
						}
						.info{
							color: gray;
							font-size: 24rpx;
						}
					}
				}
			}
		}
	}
	.footer{
		padding: 15rpx;
		.operator{
			width: 50%;
			margin: 0 auto;
			background-color: #353766;
			text-align: center;
			line-height: 70rpx;
			font-size: 30rpx;
			white-space: nowrap;
			color: #FFFFFF;
			border-radius: 28rpx;
		}
	}
}
</style>
